import React from 'react';
import '../../../public/iconfont/iconfont.css';

interface BaseIconProps {
  iconName: string;
}

const BaseIcon: React.FC<BaseIconProps> = ({ iconName }) => {
  return (
    // <svg className="icon" aria-hidden="true">
    //   <use xlinkHref={`#icon-${iconName}`}></use>
    // </svg> className="iconfont icon-xxx"
    <span className={`iconfont icon-${iconName}`}></span>
  );
};

export default BaseIcon;
